package com.netsar.facade;

import java.util.List;

import com.netsar.dao.ReservasDAO;
import com.netsar.modelo.Reservas;

public class ReservasFacadeImpl implements ReservasFacade {
	
	
	private static ReservasFacadeImpl facade;  

	public static final ReservasFacadeImpl getServiceFacade() {  
		if (facade == null) {  
			facade = new ReservasFacadeImpl();  
		}  
		return facade;  
	}

	@Override
	public void salva(Reservas p) {
		ReservasDAO dao = ReservasDAO.getInstance();
		dao.salva(p);
	}

	
	public  List<Reservas> recuperaReservaHoteis(){
		ReservasDAO dao = ReservasDAO.getInstance();
		return dao.recuperaReservaHoteis();
	}

	
	
	@Override
	public void remove(Reservas p) {
		ReservasDAO dao = ReservasDAO.getInstance();
		dao.remove(p);
		
	}



}
